<?php
/**
 * Created by PhpStorm.
 * Author: 芸签cms www.yunqiancms.com
 * User: sun
 * Date: 2022/6/28
 * Time: 10:36 AM
 */
namespace app\backend\modules\common\controllers;

use app\backend\controllers\BaseController;

class IndexController extends BaseController
{
    public function dashBoard(){
        return view("backend.common.index.dashboard");
    }
    public function dashBoardInfo(){
        $res = [];
        $res['base']['php_os'] = PHP_OS;
        $res['base']['server_software'] = $_SERVER["SERVER_SOFTWARE"];
        $res['base']['php_sapi_name'] = php_sapi_name();
        $res['base']['upload_max_filesize'] = ini_get('upload_max_filesize');
        $res['base']['server_time'] = date("Y年n月j日 H:i:s");
        $res['base']['beijing_time'] = gmdate("Y年n月j日 H:i:s",time()+8*3600);
        $res['base']['server_name'] = $_SERVER['SERVER_NAME'];
        return $this->successJson('',$res);
    }
}